import { library } from '@fortawesome/fontawesome-svg-core';
import { faSquare, faCircle, faCheckSquare, faCheckCircle } from '@fortawesome/pro-regular-svg-icons';
import { faSquare as fasSquare, faCircle as fasCircle, faCheckSquare as fasCheckSquare, faCheckCircle as fasCheckCircle, faCaretDown, faChevronDown, faChevronRight, faChevronUp, faEllipsisV } from '@fortawesome/pro-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';

// 添加图标到库
library.add(
  // Regular icons
  faSquare,
  faCircle,
  faCheckSquare,
  faCheckCircle,
  // Solid icons
  fasSquare,
  fasCircle,
  fasCheckSquare,
  fasCheckCircle,
  faCaretDown,
  faChevronDown,
  faChevronRight,
  faChevronUp,
  faEllipsisV
);

export { FontAwesomeIcon };

export default {
  install(Vue) {
    Vue.component('font-awesome-icon', FontAwesomeIcon);
  }
};
